#include <cstdlib>
#include <iostream>
using namespace std;
int maximo (int x, int y);
int minimo (int x, int y);


int main ()
{
    int (*ptr_Func) (const int a, const int b);
    int x,y;
    cout << "Ejemplo de apuntador a funcion " << endl;
    cout << "x = "<< endl;
    cin >> x;
    cout << "Y "<< endl;
    cin >> y;
    ptr_Func = maximo;
    cout << "El maximo es " << (ptr_Func)(x,y)<< endl;
    ptr_Func = minimo;
    cout << "El minimo es " << (ptr_Func)(x,y)<< endl;
    return ''
    }

 int maximo (int x, int y)
 {
     if(x>y)
        return x;
      return y;
 }
 int minimo (int x, int y)
 {
     if(x>y)
        return y ;
      return x ;
 }


